package indi.tshoiasc.simstr.config;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.Effect;
import org.bukkit.inventory.ItemStack;

public class ConfigHolder {
	public static int Cooldown;
	public static String Broadcast_content;
	public static int Broadcast_level;
	public static double addValue;
	public static Effect successEffect;
	public static Effect failEffect;
	private int id;
	private int mode;
	private Map<String, Object> normal = new HashMap<String, Object>();
	private Map<String, Object> luck = new HashMap<String, Object>();
	private Map<String, Object> safe = new HashMap<String, Object>();
	private String name;

	public Map<String, Object> getLuck() {
		return this.luck;
	}

	public Map<String, Object> getSafe() {
		return this.safe;
	}

	public static int getCooldown() {
		return Cooldown;
	}

	public static String getBroadcast_content() {
		return Broadcast_content;
	}

	public static int getBroadcast_level() {
		return Broadcast_level;
	}

	public int getId() {
		return this.id;
	}

	public int getMode() {
		return this.mode;
	}

	public Map<String, Object> getNormal() {
		return this.normal;
	}

	public ConfigHolder(int id, String name, int mode, int normal_costMoney, List<ItemStack> normal_costItem,
			List<Integer> normal_random, int luck_costMoney, List<ItemStack> luck_costItem, int luck_addRandom,
			int safe_costMoney, List<ItemStack> safe_costItem) {
		this.id = id;
		this.name = name;
		this.mode = mode;
		this.normal.put("costMoney", Integer.valueOf(normal_costMoney));
		this.normal.put("costItem", normal_costItem);
		this.normal.put("random", normal_random);
		this.luck.put("costMoney", Integer.valueOf(luck_costMoney));
		this.luck.put("costItem", luck_costItem);
		this.luck.put("addRandom", Integer.valueOf(luck_addRandom));
		this.safe.put("costMoney", Integer.valueOf(safe_costMoney));
		this.safe.put("costItem", safe_costItem);
	}

	public String getName() {
		return this.name;
	}
}
